package client.controller.param;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class DrawPrizesData {
    //    activityId: activityId,
    Long activityId;
    //    prizeId: data.prizeId,
    Long prizeId;
    //    winningTime: new Date(),
    Date winningTime;
    //    winnerList: luckUserList
    List<LuckUserList> winnerList;

    public static LuckUserList setLuckUserList(Long userId, String userName) {
        return new LuckUserList(userId, userName);
    }

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class LuckUserList {
        Long userId;
        String userName;
    }
}
